package com.itheima.service;

import com.itheima.dao.impl.UserImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserService {
    public static void main(String[] args) throws Exception {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("spring-day01/src/main/resources/appliciton-fb.xml");
        UserImpl daoFactory = (UserImpl) ctx.getBean("daoFactory");
        System.out.println(daoFactory.findAll());
    }
}
